#include<stdio.h>

int main()
{
	//输入错误-重新输入（goto语句跳转）
	n:
	//输入出生日期
	int year=0, month=0, day=0;
	printf("输入你的出生日期：");
	scanf("%4d%2d%2d",&year, &month, &day);
	
	//判断范围
	if(year>=1990 && year<=2024 && month>=1 && month<=12 && day>=1 && day <= 30 ){
		//真-输出结果
		printf("year= %d\n",year);
		printf("month= %02d\n",month);
		printf("day= %02d\n",day);
	}
	else
	{
		//假-重新输入
		printf("输入内容有误,重新");
		goto n;
	}
	 
	return 0;
}
